<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../../../taglib.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<easyui:list>
<html>
<head>
<base href="<%=basePath%>" />
<title></title>
<%@ include file="/webmodules/console/css.jsp"%>
<%@ include file="/webmodules/console/js.jsp"%>
<script type="text/javascript">
${js}
function init_after(){
	//if($("#datagridsearch")){
	//	$('#mybuttion').insertBefore('#datagridsearch');
	//}else{
		$(".datagrid-toolbar").append($('#mybuttion').html());
	//}
}

function glyhzcy(){
	var rows = $('#mydatagrid').datagrid('getSelections');
	if (rows.length == 1) {
		addordeluser(rows[0].NAME,rows[0].ID);
	}else{
		top.showMsg("", "请选择一行数据！", true);
	}
}
function addordeluser(title,id) {
	top.showWindow(null, title+"-用户组成员管理", "dragon/modules/system/user/action/UserGroupHandler/loadGroupUsers.ejw?id="+id, 600, 450);
}
</script>
</head>
<body>
${html}
<div id="mybuttion">
<div class="datagrid-btn-separator"></div>
<a href="javascript:void(0)" style="float: left; " class="l-btn l-btn-plain" id="" onclick="glyhzcy()"><span class="l-btn-left"><span class="l-btn-text icon-sum" style="padding-left: 20px; ">管理用户组成员</span></span></a>
</div>
</body>
</html>
</easyui:list>